package com.java.business.controller;

import com.java.business.model.Appointment;
import com.java.business.model.Checkin;
import com.java.business.service.AppointmentService;
import com.java.business.service.CheckinService;
import com.java.common.model.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 接待登记
 */
@RestController
@RequestMapping("/checkin")
public class CheckinController {

    @Autowired
    private CheckinService checkinService;

    @PostMapping("/list")
    public Result list(@RequestBody Checkin checkin) {
        return checkinService.list(checkin);
    }

    @PostMapping("/save")
    public Result save(@RequestBody Checkin checkin) {
        return checkinService.save(checkin);
    }

    @PostMapping("/modify")
    public Result modify(@RequestBody Checkin checkin) {
        return checkinService.modify(checkin);
    }

    @GetMapping("/remove")
    public Result remove(int[] ids) {
        return checkinService.remove(ids);
    }

}
